<script>
	export default {
		onLaunch() {
			const that = this;
			uni.getSystemInfo({
				success(res) {
					that.globalData.statusBarHeight = res.statusBarHeight;
				}
			})
			// 热更新
			// #ifdef APP-PLUS  
			plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {  
			    uni.request({  
			        url: 'https://update.citic365.com/update.php',  
			        data: {  
			            version: widgetInfo.version,  
			            name: widgetInfo.name  
			        },  
			        success: (result) => {  
			            var data = result.data;  
			            if (data.update && data.wgtUrl) {  
			                uni.downloadFile({  
			                    url: data.wgtUrl,  
			                    success: (downloadResult) => {  
			                        if (downloadResult.statusCode === 200) {  
			                            plus.runtime.install(downloadResult.tempFilePath, {  
			                                force: false  
			                            }, function() {  
			                                console.log('install success...');  
			                                plus.runtime.restart();  
			                            }, function(e) {  
			                                console.error('install fail...');  
			                            });  
			                        }  
			                    }  
			                });  
			            }  
			        }  
			    });  
			});  
			// #endif
		},
		globalData: {
			statusBarHeight: '', //手机顶部状态栏高度
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	@import "./public.scss";
	@import "./ly.scss";
	@import "./static/css/main.css";
	@import "./static/css/app.scss";

	
	page {
		background-color: #FBFBFB;
	}
	//《《	swiper分页器样式
	uni-swiper .uni-swiper-dot{
		border-radius: 0;
		width: 12rpx;
		height: 6rpx;
		opacity: 0.6;
		border-radius: 3px;
		background-color: #FFFFFF;
	}
	uni-swiper .uni-swiper-dot-active{
		opacity: 1 !important;
		width: 24rpx !important;
	}
	// 》》
	uni-slider .uni-slider-track {
	    height: 100%;
	    border-radius: 6px;
		
	    background-color: #E54D42 !important;
	}
	.cu-form-group {
		background-color: #12161F;
		padding: 30upx 30upx;
	}

	.cu-form-group uni-input {
		color: #FFFFFF;
	}

	.cu-form-group+.cu-form-group {
		border-top: 1upx solid #1E2531;
	}

	.uni-input-placeholder {
		color: #A8AFC2;
	}

	.uni-navbar--border {
		border-bottom-color: #EE515A !important;
	}
	.btn_group {
		border: 0 !important;
		// background-color: #EE515A !important;
		// border: 1px solid #FFFFFF !important;
	}
	.btn_group .active {
		// border: 1px solid #FFFFFF !important;
		border: 0 !important;
		background-color: #FFFFFF !important;
		color: #E54D42 !important;
	}
	.left,.right{
		color: #FFFFFF !important;
		background-color: #EE515A !important;
	}
</style>
